package com.rg.service;

import com.rg.dao.UserLogindao;
import com.rg.dao.UserRegisterdao;
import com.rg.model.UserModel;
//服务用于检查用户名是否已被注册。
public class checkOneUserService {
    public boolean checkUsername(String username) {
        UserLogindao userLogindao = new UserLogindao();
        UserModel usermodel = userLogindao.selectUserByUserName(username);
        if (usermodel != null){
            return false;
        }
        return true;
    }
}
